angular.module("myApp")
.controller("CartController",["$scope",function($scope){
	$scope.c_panding = c_panding;
	$scope.goods = goods;
	$scope.zongjia = zongjia;
	$scope.zongshu = zongshu;
	$scope.fals = false;
	//是否全选
	$scope.quanxuan = function(){
		$scope.fals== true ? $scope.fals = false:$scope.fals = true;
		if($scope.fals == true){
			$scope.zongjia = 0;
			$scope.zongshu = 0;
		}else{
			$scope.zongjia = zongjia;
			$scope.zongshu = zongshu;
		}
	}
}])